<?php
namespace Cyfy\Modules\Users\Forms;

use \Cyfy\Message;
use \Cyfy\Modules\Forms;

/**
 * Edit group form.
 *
 * @author Dandelion <dandelion8888@gmail.com>
 * @version 0.1
 */
class EditGroup extends CreateGroup
{
    function submit()
    {
        \dibi :: query("UPDATE [:cyfy:Users-groups] SET %a ", $this -> getAll(), " WHERE gid=" . $this -> getTemp("gid") );
        \Cyfy\Message :: set(self :: t(711, $this -> get("name")));
        return true;
    }
}